package com.basic.modules.ykf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 客户管理
 *
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-04-06 18:40:44
 */
@Data
@TableName("ykf_customer")
public class YkfCustomerEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 查询条件
	 */
	@TableField(exist = false)
	private String keyword;

	/**
	 * 
	 */
	@TableId
	private Long customerId;
	/**
	 * 客户编号
	 */
	private String customerNo;
	/**
	 * 客户名称
	 */
	private String customerName;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 创建者ID
	 */
	@TableField(fill = FieldFill.INSERT)
	private Long createUserId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 店铺列表
	 */
	@TableField(exist = false)
	private List<YkfCustomerShopEntity> shopList;

	/**
	 * 店铺列表
	 */
	@TableField(exist = false)
	private List<YkfCustomerEntity> bodyList;

	/**
	 * 店铺原对接人
	 */
	@TableField(exist = false)
	private String oldStoreLiaison;

	/**
	 * 店铺对接人
	 */
	@TableField(exist = false)
	private String storeLiaison;

	/**
	 * 店铺IDs
	 */
	@TableField(exist = false)
	private List<Long> shopIds;
	@TableField(exist = false)
	private String mergeGroup;
	@TableField(exist = false)
	private BigDecimal baseSalary;

	@TableField(exist = false)
	private BigDecimal customBaseSalary = BigDecimal.ZERO;
	@TableField(exist = false)
	private Integer customDayReceptionVolume = 0;
	@TableField(exist = false)
	private BigDecimal customCommissionSalary = BigDecimal.ZERO;
	@TableField(exist = false)
	private BigDecimal customMonthSalary = BigDecimal.ZERO;
	@TableField(exist = false)
	private BigDecimal customSumSalary = BigDecimal.ZERO;

	/**
	 * 合作状态 1-正在合作 0-停止合作
	 */
	private Integer  cooperateStatus;

	/**
	 * 停止合作日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date stopCooperateDate;
}
